<?php
if($_SESSION['install_id']=='' || intval($_SESSION['pack_size'])==0)
{
	die();
}
$p = round((intval($_SESSION['pack_downloaded'])*1000) / $_SESSION['pack_size']);
$p = min($p, 1000);
?>
if(document.getElementById("div_down"))
{
	document.getElementById("div_down").style.width = "<?php echo ($p/10)?>%";
	document.getElementById("div_down_label").innerHTML = "<?php echo ($p/10)?>%";
	to=setTimeout(function()
	{
		ajax.sendAsync(page+'?action=down_pack_info&uid='+new Date().getTime(), function(datas)
		{
			evalAjax(datas)
		})
	}, 1000)
}
